//
//  PaySectionView.m
//  DingDongXiChe
//
//  Created by wtjr on 2018/1/9.
//  Copyright © 2018年 xieyingze. All rights reserved.
//

#import "PaySectionView.h"

@interface PaySectionView()

@property (nonatomic, strong) UIView *mainView;

@end

@implementation PaySectionView

#pragma mark - Init

- (void)initData {
    
}

- (void)initSubViews {
    [self addSubview:self.mainView];
}

- (void)autoLayoutSubViews {
    [self.mainView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(@0);
    }];
}

#pragma mark - BaseMethod


#pragma mark - Interface


#pragma mark - Delegate


#pragma mark - TouchEvent


#pragma mark - Setter


#pragma mark - Getter

- (UIView *)mainView {
    if (!_mainView) {
        _mainView = [UIView new];
        _mainView.backgroundColor = kCOLOR_tableView;
        
        UIView *yLine = [UIView new];
        yLine.backgroundColor = KCOLOR_mainColor;
        [_mainView addSubview:yLine];
        [yLine mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(@10);
            make.centerY.equalTo(@0);
            make.width.equalTo(@5);
            make.height.equalTo(@20);
        }];
        BaseLabel *titleLabel = [BaseLabel new];
        [titleLabel setLabelStyle:@"" textColor:KCOLOR_mainColor textFont:kFONT_mainNumBoldFont(14) texrAlignment:NSTextAlignmentLeft];
        self.titleLabel = titleLabel;
        [_mainView addSubview:titleLabel];
        [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(yLine.mas_right).offset(5);
            make.centerY.equalTo(yLine);
            make.height.equalTo(@20);
        }];
    }
    return _mainView;
}

@end
